public class DelegateHandler
{
    private bool eventHasBeenCalled = false;

    public bool DelegateHasBeenInvoked()
    {
        return this.eventHasBeenCalled;
    }

    public void GenericDelegateHandler<T>(object sender, T e)
    {
        eventHasBeenCalled = true;
    }
}